home *** CD-ROM | disk | FTP | other *** search
- <?xml version="1.0"?>
-
- <xsl:stylesheet version="1.0"
- xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- xmlns:fd="http://www.bradsoft.com/feeddemon/xmlns/1.0/">
-
- <xsl:output method="html"/>
-
- $INCLUDE(commonvar.inc)$
-
- <fd:capabilities showExcerpts="false" toggleExcerpts="false" collapsePosts="false" itemGrouping="false" />
- <xsl:variable name="feed-type" select="newspaper/channel/@feedType"/>
-
- <xsl:template match="newspaper">
- <html xmlns:m="http://www.w3.org/1998/Math/MathML">
- <head>
- <title>Newspaper (<xsl:value-of select="title" disable-output-escaping="yes"/>)</title>
- $INCLUDE(metatrans.inc)$
- <style type="text/css">
- $INCLUDE(commonstyles.css)$
-
- html {
- border: 7px solid gray;
- font-size: $FONT-SIZE-NEWSPAPER$;
- }
- body {
- background-color: white;
- color: black;
- font-size: smaller;
- font-family: "$FONT-NAME-NEWSPAPER$", Verdana, Arial, sans-serif;
- margin: 16px 22px;
- }
-
- a { color: blue; }
- a:hover { color: #6B8ADE; text-decoration: underline; }
- a.notcached {
- text-decoration: none ! important;
- border-bottom: 1px dotted red ! important;
- }
-
- /* override headings used by feeds */
- h1,h2,h3,h4,h5,h6 { font-size: 100%; font-weight: bold; font-style: italic; }
-
- div#newspapertitle {
- font-weight: bold;
- background-color: #9099AE;
- color: white;
- width: 100%;
- padding: 3px 4px;
- margin-bottom: 12px;
- clear: both;
- }
-
- div.newsitemtitle {
- font-weight: bold;
- font-size: 105%;
- margin-bottom: 4px;
- clear: both;
- }
- div.newsitemtitle a { color: black; }
- img.icon { margin: 0 2px; border: none; }
- div.newsitemtitle img.icon { margin-left: 6px; }
-
- div.newsitemcontent {
- font-family: "Courier New", Courier, monospace;
- margin-top: 10px;
- }
- div.newsitemfooter {
- clear: both;
- padding-bottom: 34px;
- border-bottom: 1px dotted #9099AE;
- margin-bottom: 7px;
- }
- div.newsitemheader {
- font-size: x-small;
- border-bottom: 1px solid #9099AE;
- padding-bottom: 6px;
- }
- .none { color: gray; margin-top: 10px; }
- div.newsitemtitle a { text-decoration: none; }
-
- span.sep {
- color: #ACA899;
- margin: 0 5px;
- font-size: xx-small;
- }
-
- .unread { font-weight: bold; color: $COLOR-UNREAD$; }
- .flagged { color: $COLOR-FLAGGED$; }
- .normal { color: black; }
-
- /* this prevents the IE6 bug described at http://www.dracos.co.uk/code/ie6-css-bug/ */
- .fdnewsitem {
- line-height: 1.2em;
- }
- #fdfocusedpost {
- background-color: #F3F3F3;
- }
- div.postactions, div.dateline {
- display: inline;
- padding-right: 8px;
- vertical-align: middle;
- }
- div.dateline {
- color: gray;
- font-style: italic;
- }
- a.share, a.share:hover {
- text-decoration: none;
- }
- div.postenclosure { font-weight: bold; font-size: smaller; margin-top: 6px; vertical-align: middle; }
- div.postenclosure a { font-weight: normal; }
- img.enclosure { margin-left: -2px; }
- </style>
- </head>
- <body>
- <xsl:variable name="folderId" select="@folderId"/>
- <!-- no newspaper title for single items -->
- <xsl:if test="title and $newspaper-type!='newsitem'">
- <div id="newspapertitle"><xsl:value-of select="title" disable-output-escaping="yes"/></div>
- </xsl:if>
-
- <xsl:choose>
- <xsl:when test="$item-count=0">
- <div class="none">$LANG_CONST(S_NoItemsInNewspaperFilter)$</div>
- </xsl:when>
- <xsl:otherwise>
- <xsl:for-each select="channel/item">
- <xsl:sort select="@sortIndex" data-type="number"/>
- <xsl:apply-templates select="."/>
- </xsl:for-each>
- </xsl:otherwise>
- </xsl:choose>
- </body>
- </html>
- </xsl:template>
-
- <!-- news item template -->
- <xsl:template match="item">
- <xsl:variable name="feedId" select="@feedId"/>
- <xsl:variable name="postId" select="@postId"/>
-
- <div class="fdnewsitem" name="{$feedId}:{$postId}">
- <div class="newsitemtitle">
- <xsl:variable name="itemlink" select="link"/>
- <a id="{$postId}_title" title="$LANG_CONST(S_NewsHintGotoPost)$" href="fdaction:?action=gotopostlink&feedid={$feedId}&postid={$postId}&markpostread=1">
- <xsl:value-of select="title" disable-output-escaping="yes"/>
- </a>
- <!-- goto post link in new tab -->
- <a class="icon" href="fdaction:?action=gotopostlink&newtab=1&feedid={$feedId}&postid={$postId}&markpostread=1" title="$LANG_CONST(S_NewsHintOpenInNewTab)$">
- <img src="$IMAGEDIR$linknew.gif" class="icon" align="absmiddle" />
- </a>
- </div>
- <div class="newsitemheader">
- $INCLUDE(postactions.inc)$
- <div class="dateline"><xsl:value-of select="dateDisplay"/></div>
- <!-- author -->
- <xsl:if test="author"><span class="sep">|</span> <xsl:value-of select="author" disable-output-escaping="yes"/></xsl:if>
- <!-- source -->
- <xsl:if test="source and source/@htmlUrl">
- <xsl:variable name="srclink" select="source/@htmlUrl"/>
- <span class="sep">|</span> <a href="{$srclink}"><xsl:value-of select="source"/></a>
- </xsl:if>
- $INCLUDE(postenclosure.inc)$
- </div>
- <div class="newsitemcontent">
- <xsl:value-of select="description" disable-output-escaping="yes"/>
- </div>
- <xsl:if test="$item-count!=1">
- <div class="newsitemfooter"> </div>
- </xsl:if>
- </div>
- </xsl:template>
-
- </xsl:stylesheet>